<html xmlns:th="http://www.thymeleaf.org" xmlns:x="http://www.w3.org/1999/html">
<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false" title="" style="overflow: hidden;padding: 3px;">
        <form id="jobCandidateItemEditForm" method="post">
            <table class="grid">
                <input name="id" type="hidden" th:value="${jobCandidateItem.id}">
                <tr>
                    <td></td>
                    <td><input name="id" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.id}"></td>
                    <td></td>
                    <td><input name="updateTime" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.updateTime}"></td>
                </tr>
                <tr>
                    <td>预留</td>
                    <x:select id="jobCandidateItemEditStatus" name="status" type="dbStatus" class="easyui-combobox"
                              data-options="width:160,height:29,editable:false,panelHeight:'auto'"/>
                    <td></td>
                    <td><input name="createTime" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.createTime}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="realName" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.realName}"></td>
                    <td></td>
                    <td><input name="staffNo" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.staffNo}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="mobile" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.mobile}"></td>
                    <td></td>
                    <td><input name="description" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.description}"></td>
                </tr>
                <tr>
                    <td>职务</td>
                    <td><input name="remark" type="text" placeholder="请输入职务" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.remark}"></td>
                    <td>级别"P6,P7"</td>
                    <td><input name="gradeLevel" type="text" placeholder="请输入级别" P6,P7"" class="easyui-validatebox"
                        data-options="required:true" th:value="${jobCandidateItem.gradeLevel}">
                    </td>
                </tr>
                <tr>
                    <td>工作年限,例如"工作3年"</td>
                    <td><input name="workYears" type="text" placeholder="请输入工作年限,例如" 工作3年"" class="easyui-validatebox"
                        data-options="required:true" th:value="${jobCandidateItem.workYears}">
                    </td>
                    <td>专场城市,例如"上海","南京"</td>
                    <td><input name="recruitSpecialCity" type="text" placeholder="请输入专场城市,例如" 上海","南京""
                        class="easyui-validatebox" data-options="required:true"
                        th:value="${jobCandidateItem.recruitSpecialCity}">
                    </td>
                </tr>
                <tr>
                    <td>简历优质排序,我个人自定义的</td>
                    <td><input name="qualityRank" type="text" placeholder="请输入简历优质排序,我个人自定义的" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.qualityRank}"></td>
                    <td>简历地址,如果有多个,则以逗号分隔</td>
                    <td><input name="url" type="text" placeholder="请输入简历地址,如果有多个,则以逗号分隔" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.url}"></td>
                </tr>
                <tr>
                    <td>职务名称:"政务钉钉事业部-JAVA服务端技术专家（上海专场）-杭州"</td>
                    <td><input name="workTitle" type="text" placeholder="请输入职务名称:" 政务钉钉事业部-JAVA服务端技术专家（上海专场）-杭州""
                        class="easyui-validatebox" data-options="required:true"
                        th:value="${jobCandidateItem.workTitle}">
                    </td>
                    <td>面试时间</td>
                    <td><input name="interviewTime" type="text" placeholder="请输入面试时间" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.interviewTime}"></td>
                </tr>
                <tr>
                    <td>预留</td>
                    <td><input name="reservedOne" type="text" placeholder="请输入预留" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reservedOne}"></td>
                    <td>n,y</td>
                    <td><input name="isDeleted" type="text" placeholder="请输入n,y" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.isDeleted}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved2" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved2}"></td>
                    <td></td>
                    <td><input name="reserved3" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved3}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved4" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved4}"></td>
                    <td></td>
                    <td><input name="reserved5" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved5}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved6" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved6}"></td>
                    <td></td>
                    <td><input name="reserved7" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved7}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved8" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved8}"></td>
                    <td></td>
                    <td><input name="reserved9" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved9}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved10" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved10}"></td>
                    <td></td>
                    <td><input name="reserved11" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved11}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved12" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.reserved12}"></td>
                    <td></td>
                    <td><input name="email" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.email}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="weixinNo" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.weixinNo}"></td>
                    <td></td>
                    <td><input name="isHighQuality" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.isHighQuality}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="specialCase" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${jobCandidateItem.specialCase}"></td>
                </tr>
            </table>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $('#jobCandidateItemEditForm').form({
            url: basePath + '/jobCandidateItem/edit',
            onSubmit: function () {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success: function (result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.code === 1) {
                    //之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为list页面预定义好了
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    var form = $('#jobCandidateItemEditForm');
                    parent.$.messager.alert('错误', result.msg, 'error');
                }
            }
        });

        $("#jobCandidateItemEditStatus").val('[[${jobCandidateItem.status}]]');
    });
</script>
